package com.rongxue.mapper;

import com.rongxue.pojo.SInvestmentDetail;
import com.rongxue.pojo.SInvestmentDetailExample;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface SInvestmentDetailMapper {
    int countByExample(SInvestmentDetailExample example);

    int deleteByExample(SInvestmentDetailExample example);

    int deleteByPrimaryKey(Long id);

    int insert(SInvestmentDetail record);

    Long insertSelective(SInvestmentDetail record);

    List<SInvestmentDetail> selectByExample(SInvestmentDetailExample example);

    SInvestmentDetail selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") SInvestmentDetail record, @Param("example") SInvestmentDetailExample example);

    int updateByExample(@Param("record") SInvestmentDetail record, @Param("example") SInvestmentDetailExample example);

    int updateByPrimaryKeySelective(SInvestmentDetail record);

    int updateByPrimaryKey(SInvestmentDetail record);

    //查询用户当前在平台的状态
    int selectUserCountByUserIdAndStatus(@Param("userId") String userId);

    void updateSelective(SInvestmentDetail sInvestmentDetail);

    SInvestmentDetail selectsInvestmentetailByrechargeNo(String mchntorderid);

    SInvestmentDetail selectIdByRechargeNo(String rechargeNo);
    //累计投资
    BigDecimal selectTotalDueCapital(String userId);
}